//
//  AddCityViewController.m
//  WeatherCast
//
//  Created by long on 15/1/23.
//  Copyright (c) 2015年 anlong. All rights reserved.
//

#import "AddCityViewController.h"

@interface AddCityViewController ()

@end

@implementation AddCityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSLog(@"AddCityViewController viewDidLoad");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
    NSLog(@"AddCityViewController prepareForSegue");
    
    if (sender != self.barItemDone) return;
    if (self.txtCityName.text.length > 0) {
        self.cityName = [[NSString alloc] init];
        self.cityName = self.txtCityName.text;
    }
}

-(IBAction)ClickedDone:(id)sender {
    NSLog(@"ClickedDone");
}

@end
